#include "projectinfo.h"

ProjectInfo::ProjectInfo()
{

}

ProjectInfo::ProjectInfo(QString name,
                         QString url,
                         int person_num,
                         QString level,
                         QString career,
                         int num) : m_name(name),
                                           m_url(url),
                                           m_person_num(person_num),
                                           m_level(level),
                                           m_career(career),
                                           m_num(num)
{

}

ProjectInfo::ProjectInfo(const ProjectInfo& projectInfo)
{
    this->m_person_num = projectInfo.m_person_num;
    this->m_url = projectInfo.m_url;
    this->m_name = projectInfo.m_name;
    this->m_level = projectInfo.m_level;
    this->m_career = projectInfo.m_career;
    this->m_num = projectInfo.m_num;
}

const QString ProjectInfo::getName() const
{
    return this->m_name;
}

const QString ProjectInfo::getUrl() const
{
    return this->m_url;
}

int ProjectInfo::getPersonNum() const
{
    return this->m_person_num;
}


const QString ProjectInfo::getLevel() const
{
    return this->m_level;
}

const QString ProjectInfo::getCareer() const
{
    return this->m_career;
}

int ProjectInfo::getNum() const
{
    return this->m_num;
}

bool ProjectInfo::isEmpty()
{
    return !(this->m_name.isEmpty() ||
            this->m_url.isEmpty() ||
            this->m_level.isEmpty() ||
            this->m_career.isEmpty());
}
